package com.ericsson.enap.modules.monitor.task;

import com.ericsson.common.quartz.task.ManualTask;
import org.springframework.stereotype.Component;

import java.time.LocalDateTime;

/**
 * @description: 测试Task
 * @author: wangjingshi
 * @create: 2020-12-07 10:06
 */
@Component
public class TestTask implements ManualTask {
    @Override
    public void execute() {
        LocalDateTime time = LocalDateTime.now();
        System.out.println("good!good!study!:当前时间=" + time.getHour() + "时" + time.getMinute() + "分" + time.getSecond() + "秒"+System.currentTimeMillis());
    }
}
